package com.example.demo.factory;


import com.example.demo.domain.ImagesDo;
import com.example.demo.utils.ImagesUtils;
import org.apache.commons.lang3.StringUtils;

import java.io.IOException;

public class ImgsProcessFactory {

    /**
     * 创建图片
     * @param imagesDo
     */
    public static void createWordsImg(ImagesDo imagesDo){
        try {
            ImagesUtils.createImage(imagesDo.getText(),imagesDo.getColor(),imagesDo.getFontSize(),imagesDo.getDegree(),imagesDo.getAlpha(),imagesDo.getWidth(),imagesDo.getHeight(),imagesDo.getEvery_line());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
